.POSIX:
PREFIX=		/usr/local
MANDIR=		man
NOPTARGETS=	auconv aumix auresample auopen au2au au2aiff \
		    aiff2au au2wav wav2au
OPTARGETS=	auinfo autone au2flac au2vorbis au2mpg flac2au 	\
		    vorbis2au mpg2au aualsa auaudio auoss	\
		    auportaudio ausdl ausndio
TARGETS=	${NOPTARGETS} ${OPTARGETS}

# Convenience variables
BIN=		${DESTDIR}${PREFIX}/bin
LBIN=		${HOME}/bin
MAN1=		${DESTDIR}${PREFIX}/${MANDIR}/man1
MAN7=		${DESTDIR}${PREFIX}/${MANDIR}/man7

MAGIC=		if ! [ "$$PATH" ]; then				\
			export					\
			    PATH=/bin:/usr/bin:/usr/local/bin;	\
		fi;						\
		if [ -e /usr/include/sys/capsicum.h ]; then	\
			export CFLAGS="$$CFLAGS -DUSE_CAPSICUM";\
		elif grep -q pledge /usr/include/unistd.h; then	\
			export CFLAGS="$$CFLAGS -DUSE_PLEDGE";	\
		fi

default: magic
magic: nonopt-magic au2flac-magic au2vorbis-magic flac2au-magic \
    vorbis2au-magic auaudio-magic auoss-magic ausdl-magic	\
    ausndio-magic
all-magic: magic auinfo-magic autone-magic au2mpg-magic	\
    mpg2au-magic aualsa-magic
nonopt-magic:
	@${MAGIC}; \
	${MAKE} ${MAKEFLAGS} ${NOPTARGETS}
all: ${TARGETS}
install: default auconv-install aumix-install auresample-install\
	    au2file-install file2au-install audev-install
	install -m 444 au.7 ${MAN7}/
	@for t in ${OPTARGETS}; do				\
		if [ -e "./$$t" ]; then				\
			${MAKE} ${MAKEFLAGS} -- "$$t-$@";	\
		fi;						\
	done
install-local: default auconv-install-local aumix-install-local	\
	    auresample-install-local au2file-install-local	\
	    file2au-install-local audev-install-local
	@for t in ${OPTARGETS}; do				\
		if [ -e "./$$t" ]; then				\
			${MAKE} ${MAKEFLAGS} -- "$$t-$@";	\
		fi;						\
	done
clean:
	rm -f ${TARGETS}

auconv_HDR=	au.h common.h
auconv_SRC=	au.c common.c auconv.c
auconv_CFLAGS=	${CFLAGS}
auconv_LDFLAGS=	${LDFLAGS}

auconv: ${auconv_SRC} ${auconv_HDR} Makefile
	${CC} ${auconv_CFLAGS} ${auconv_LDFLAGS} -o $@ ${auconv_SRC}
auconv-magic: nonopt-magic
auconv-install: auconv
	install -m 755 auconv ${BIN}/
	install -m 444 auconv.1 ${MAN1}/
auconv-install-local: auconv
	install -m 755 auconv ${LBIN}/

auinfo_HDR=	au.h common.h
auinfo_SRC=	au.c common.c auinfo.c
auinfo_CFLAGS=	${CFLAGS}
auinfo_LDFLAGS=	${LDFLAGS}

auinfo: ${auinfo_SRC} ${auinfo_HDR} Makefile
	${CC} ${auinfo_CFLAGS} ${auinfo_LDFLAGS} -o $@ ${auinfo_SRC}
auinfo-magic:
	@${MAGIC}; \
	${MAKE} ${MAKEFLAGS} auinfo
auinfo-install: auinfo
	install -m 755 auinfo ${BIN}/
	install -m 444 auinfo.1 ${MAN1}/
auinfo-install-local: auinfo
	install -m 755 auinfo ${LBIN}/

aumix_HDR=	au.h common.h
aumix_SRC=	au.c common.c aumix.c
aumix_CFLAGS=	${CFLAGS}
aumix_LDFLAGS=	${LDFLAGS}

aumix: ${aumix_SRC} ${aumix_HDR} Makefile
	${CC} ${aumix_CFLAGS} ${aumix_LDFLAGS} -o $@ ${aumix_SRC}
aumix-magic: nonopt-magic
aumix-install: aumix
	install -m 755 aumix ${BIN}/
	install -m 444 aumix.1 ${MAN1}/
aumix-install-local: aumix
	install -m 755 aumix ${LBIN}/

auresample_HDR=		au.h common.h
auresample_SRC=		au.c common.c auresample.c
auresample_CFLAGS=	${CFLAGS}
auresample_LDFLAGS=	${LDFLAGS}

auresample: ${auresample_SRC} ${auresample_HDR} Makefile
	${CC} ${auresample_CFLAGS} ${auresample_LDFLAGS} -o $@ \
	    ${auresample_SRC}
auresample-magic: nonopt-magic
auresample-install: auresample
	install -m 755 auresample ${BIN}/
	install -m 444 auresample.1 ${MAN1}/
auresample-install-local: auresample
	install -m 755 auresample ${LBIN}/

autone_HDR=	au.h common.h
autone_SRC=	au.c common.c autone.c
autone_CFLAGS=	${CFLAGS}
autone_LDFLAGS=	${LDFLAGS}

autone: ${autone_SRC} ${autone_HDR} Makefile
	${CC} ${autone_CFLAGS} ${autone_LDFLAGS} -o $@ ${autone_SRC}
autone-magic:
	@${MAGIC}; \
	${MAKE} ${MAKEFLAGS} autone
autone-install: autone
	install -m 755 autone ${BIN}/
	install -m 444 autone.1 ${MAN1}/
autone-install-local: autone
	install -m 755 autone ${LBIN}/

au2file_HDR=		au.h common.h write/afile.h
au2aiff_SRC=		write/aiff.c au.c common.c au2file.c
au2aiff_CFLAGS=		${CFLAGS}
au2aiff_LDFLAGS=	${LDFLAGS}
au2wav_SRC=		write/wav.c au.c common.c au2file.c
au2wav_CFLAGS=		${CFLAGS}
au2wav_LDFLAGS=		${LDFLAGS}
au2flac_SRC=		write/flac.c au.c common.c au2file.c
au2flac_CFLAGS=		${CFLAGS} `pkg-config --cflags flac`
au2flac_LDFLAGS=	${LDFLAGS} `pkg-config --libs flac`
au2vorbis_SRC=		write/vorbis.c au.c common.c au2file.c
au2vorbis_CFLAGS=	${CFLAGS} -DUSE_QUALITY `pkg-config --cflags\
			ogg vorbis vorbisenc`
au2vorbis_LDFLAGS=	${LDFLAGS} `pkg-config --libs ogg vorbis\
			    vorbisenc`
au2mpg_SRC=		write/mpg.c au.c common.c au2file.c
au2mpg_CFLAGS=		${CFLAGS} -DUSE_QUALITY
au2mpg_LDFLAGS=		${LDFLAGS} -lmp3lame

au2file: au2aiff au2wav
au2aiff: ${au2aiff_SRC} ${au2file_HDR} Makefile
	${CC} ${au2aiff_LDFLAGS} ${au2aiff_CFLAGS} -o $@ ${au2aiff_SRC}
au2aiff-magic: nonopt-magic
au2wav: ${au2wav_SRC} ${au2file_HDR} Makefile
	${CC} ${au2wav_LDFLAGS} ${au2wav_CFLAGS} -o $@ ${au2wav_SRC}
au2wav-magic: nonopt-magic
au2flac: ${au2flac_SRC} ${au2file_HDR} Makefile
	${CC} ${au2flac_LDFLAGS} ${au2flac_CFLAGS} -o $@ ${au2flac_SRC}
au2flac-magic:
	@${MAGIC};				\
	if pkg-config --exists flac; then	\
		${MAKE} ${MAKEFLAGS} au2flac;	\
	fi
au2vorbis: ${au2vorbis_SRC} ${au2file_HDR} Makefile
	${CC} ${au2vorbis_LDFLAGS} ${au2vorbis_CFLAGS} -o $@ \
	    ${au2vorbis_SRC}
au2vorbis-magic:
	@${MAGIC};						\
	if pkg-config --exists ogg vorbis vorbisfile; then	\
		${MAKE} ${MAKEFLAGS} au2vorbis;			\
	fi
au2mpg: ${au2mpg_SRC} ${au2file_HDR} Makefile
	${CC} ${au2mpg_LDFLAGS} ${au2mpg_CFLAGS} -o $@ ${au2mpg_SRC}
au2mpg-magic:
	@${MAGIC};						\
	for x in $$(printf %s "$$PATH" | tr : ' '); do		\
		y="$$(dirname -- "$$x")";			\
		if [ -e "$$y/include/lame" ]; then		\
			CFLAGS="$$CFLAGS -I$$y/include"		\
			    LDFLAGS="$$LDFLAGS -L$$y/lib"	\
			    ${MAKE} ${MAKEFLAGS} au2mpg;	\
			break;					\
		fi;						\
	done
au2file-install: au2file-man-install au2aiff-install au2wav-install
au2file-man-install:
	install -m 444 au2file.1 ${MAN1}/
au2aiff-install: au2aiff
	install -m 755 au2aiff ${BIN}/
	ln -f ${MAN1}/au2file.1 ${MAN1}/au2aiff.1
au2wav-install: au2wav
	install -m 755 au2wav ${BIN}/
	ln -f ${MAN1}/au2file.1 ${MAN1}/au2wav.1
au2flac-install: au2flac
	install -m 755 au2flac ${BIN}/
	ln -f ${MAN1}/au2file.1 ${MAN1}/au2flac.1
au2vorbis-install: au2vorbis
	install -m 755 au2vorbis ${BIN}/
	ln -f ${MAN1}/au2file.1 ${MAN1}/au2vorbis.1
au2mpg-install: au2mpg
	install -m 755 au2mpg ${BIN}/
	ln -f ${MAN1}/au2file.1 ${MAN1}/au2mpg.1
au2file-install-local: au2aiff-install-local au2wav-install-local
au2aiff-install-local: au2aiff
	install -m 755 au2aiff ${LBIN}/
au2wav-install-local: au2wav
	install -m 755 au2wav ${LBIN}/
au2flac-install-local: au2flac
	install -m 755 au2flac ${LBIN}/
au2vorbis-install-local: au2vorbis
	install -m 755 au2vorbis ${LBIN}/
au2mpg-install-local: au2mpg
	install -m 755 au2mpg ${LBIN}/

file2au_HDR=		au.h common.h read/afile.h
au2au_SRC=		read/au.c au.c common.c file2au.c
au2au_CFLAGS=		${CFLAGS}
au2au_LDFLAGS=		${LDFLAGS}
aiff2au_SRC=		read/aiff.c au.c common.c file2au.c
aiff2au_CFLAGS=		${CFLAGS}
aiff2au_LDFLAGS=	${LDFLAGS}
wav2au_SRC=		read/wav.c au.c common.c file2au.c
wav2au_CFLAGS=		${CFLAGS}
wav2au_LDFLAGS=		${LDFLAGS}
flac2au_SRC=		read/flac.c au.c common.c file2au.c
flac2au_CFLAGS=		${CFLAGS} `pkg-config --cflags flac`
flac2au_LDFLAGS=	${LDFLAGS} `pkg-config --libs flac`
vorbis2au_SRC=		read/vorbis.c au.c common.c file2au.c
vorbis2au_CFLAGS=	${CFLAGS} `pkg-config --cflags ogg vorbis\
			     vorbisfile`
vorbis2au_LDFLAGS=	${LDFLAGS} `pkg-config --libs ogg vorbis\
			    vorbisfile`
mpg2au_SRC=		read/mpg.c au.c common.c file2au.c
mpg2au_CFLAGS=		${CFLAGS} `pkg-config --cflags libmpg123`
mpg2au_LDFLAGS=		${LDFLAGS} `pkg-config --libs libmpg123`

file2au: au2au aiff2au wav2au
file2au-maigc: nonopt-magic
auopen: auopen.c Makefile
	${CC} ${LDFLAGS} ${CFLAGS} -o $@ auopen.c
auopen-magic: nonopt-magic
au2au: ${au2au_SRC} ${file2au_HDR} Makefile
	${CC} ${au2au_LDFLAGS} ${au2au_CFLAGS} -o $@ ${au2au_SRC}
au2au-magic: nonopt-magic
aiff2au: ${aiff2au_SRC} ${file2au_HDR} Makefile
	${CC} ${aiff2au_LDFLAGS} ${aiff2au_CFLAGS} -o $@ ${aiff2au_SRC}
aiff2au-magic: nonopt-magic
wav2au: ${wav2au_SRC} ${file2au_HDR} Makefile
	${CC} ${wav2au_LDFLAGS} ${wav2au_CFLAGS} -o $@ ${wav2au_SRC}
wav2au-magic: nonopt-magic
flac2au: ${flac2au_SRC} ${file2au_HDR} Makefile
	${CC} ${flac2au_LDFLAGS} ${flac2au_CFLAGS} -o $@ ${flac2au_SRC}
flac2au-magic:
	@${MAGIC};				\
	if pkg-config --exists flac; then	\
		${MAKE} ${MAKEFLAGS} flac2au;	\
	fi
vorbis2au: ${vorbis2au_SRC} ${file2au_HDR} Makefile
	${CC} ${vorbis2au_LDFLAGS} ${vorbis2au_CFLAGS} -o $@ \
	    ${vorbis2au_SRC}
vorbis2au-magic:
	@${MAGIC};						\
	if pkg-config --exists ogg vorbis vorbisenc; then	\
		${MAKE} ${MAKEFLAGS} vorbis2au;			\
	fi
mpg2au: ${mpg2au_SRC} ${file2au_HDR} Makefile
	${CC} ${mpg2au_LDFLAGS} ${mpg2au_CFLAGS} -o $@ ${mpg2au_SRC}
mpg2au-magic:
	@${MAGIC};				\
	if pkg-config --exists libmpg123; then	\
		${MAKE} ${MAKEFLAGS} mpg2au;	\
	fi
file2au-install: file2au-man-install auopen-install au2au-install \
	    aiff2au-install wav2au-install
file2au-man-install:
	install -m 444 file2au.1 ${MAN1}/
	install -m 444 auopen.1 ${MAN1}/
auopen-install: auopen
	install -m 755 auopen ${BIN}/
	install -m 444 auopen.1 ${MAN1}/
au2au-install: au2au
	install -m 755 au2au ${BIN}/
	ln -f ${MAN1}/file2au.1 ${MAN1}/au2au.1
aiff2au-install: aiff2au
	install -m 755 aiff2au ${BIN}/
	ln -f ${MAN1}/file2au.1 ${MAN1}/aiff2au.1
wav2au-install: wav2au
	install -m 755 wav2au ${BIN}/
	ln -f ${MAN1}/file2au.1 ${MAN1}/wav2au.1
flac2au-install: flac2au
	install -m 755 flac2au ${BIN}/
	ln -f ${MAN1}/file2au.1 ${MAN1}/flac2au.1
vorbis2au-install: vorbis2au
	install -m 755 vorbis2au ${BIN}/
	ln -f ${MAN1}/file2au.1 ${MAN1}/vorbis2au.1
mpg2au-install: mpg2au
	install -m 755 mpg2au ${BIN}/
	ln -f ${MAN1}/file2au.1 ${MAN1}/mpg2au.1
file2au-install-local: auopen-install-local au2au-install-local \
	    aiff2au-install-local wav2au-install-local
auopen-install-local: auopen
	install -m 755 auopen ${LBIN}/
au2au-install-local: au2au
	install -m 755 au2au ${LBIN}/
aiff2au-install-local: aiff2au
	install -m 755 aiff2au ${LBIN}/
wav2au-install-local: wav2au
	install -m 755 wav2au ${LBIN}/
flac2au-install-local: flac2au
	install -m 755 flac2au ${LBIN}/
vorbis2au-install-local: vorbis2au
	install -m 755 vorbis2au ${LBIN}/
mpg2au-install-local: mpg2au
	install -m 755 mpg2au ${LBIN}/

audev_HDR=		au.h common.h adev.h
aualsa_SRC=		alsa.c au.c common.c audev.c
aualsa_CFLAGS=		${CFLAGS} -UUSE_CAPSICUM \
			    `pkg-config --cflags alsa`
aualsa_LDFLAGS=		${LDFLAGS} `pkg-config --libs alsa`
auaudio_SRC=		audio.c au.c common.c audev.c
auaudio_CFLAGS=		${CFLAGS}
auaudio_LDFLAGS=	${LDFLAGS}
auoss_SRC=		oss.c au.c common.c audev.c
auoss_CFLAGS=		${CFLAGS}
auoss_LDFLAGS=		${LDFLAGS}
auportaudio_SRC=	portaudio.c au.c common.c audev.c
auportaudio_CFLAGS=	${CFLAGS} -UUSE_CAPSICUM -DADWRITE_NOCONST
auportaudio_LDFLAGS=	${LDFLAGS} -lportaudio
ausdl_SRC=		sdl.c au.c common.c audev.c
ausdl_CFLAGS=		${CFLAGS} -UUSE_CAPSICUM\
			    `pkg-config --cflags sdl2`
ausdl_LDFLAGS=		${LDFLAGS} `pkg-config --libs sdl2`
ausndio_SRC=		sndio.c au.c common.c audev.c
ausndio_CFLAGS=		${CFLAGS} -UUSE_CAPSICUM
ausndio_LDFLAGS=	${LDFLAGS} -lsndio

aualsa: ${aualsa_SRC} ${audev_HDR} Makefile
	${CC} ${aualsa_CFLAGS} ${aualsa_LDFLAGS} -o $@ ${aualsa_SRC}
aualsa-magic:
	@${MAGIC};				\
	if pkg-config --exists alsa; then	\
		${MAKE} ${MAKEFLAGS} aualsa;	\
	fi
auaudio: ${auaudio_SRC} ${audev_HDR} Makefile
	${CC} ${auaudio_CFLAGS} ${auaudio_LDFLAGS} -o $@ ${auaudio_SRC}
auaudio-magic:
	@${MAGIC};						\
	if [ -e /usr/include/sys/audioio.h ] &&			\
	    [ "$$(uname -s)" != OpenBSD ]; then			\
		${MAKE} ${MAKEFLAGS} auaudio;			\
	fi
auoss: ${auoss_SRC} ${audev_HDR} Makefile
	${CC} ${auoss_CFLAGS} ${auoss_LDFLAGS} -o $@ ${auoss_SRC}
auoss-magic:
	@${MAGIC};						\
	if [ -e /usr/include/sys/soundcard.h ]; then		\
		if [ "$$(uname -s)" = NetBSD ]; then		\
			CFLAGS="$$CFLAGS -DAUOSS_DSP=/dev/audio"\
			    LDFLAGS="$$LDFLAGS -lossaudio"	\
			    ${MAKE} ${MAKEFLAGS} auoss;		\
		else						\
			${MAKE} ${MAKEFLAGS} auoss;		\
		fi;						\
	fi
auportaudio: ${auportaudio_SRC} ${audev_HDR} Makefile
	${CC} ${auportaudio_CFLAGS} ${auportaudio_LDFLAGS} -o $@ \
	    ${auportaudio_SRC}
auportaudio-magic:
	@${MAGIC};						\
	for x in $$(printf %s "$$PATH" | tr : ' '); do		\
		y="$$(dirname -- "$$x")";			\
		if [ -e "$$y/include/portaudio.h" ]; then	\
			CFLAGS="$$CFLAGS -I$$y/include"		\
			    LDFLAGS="$$LDFLAGS -L$$y/lib"	\
			    ${MAKE} ${MAKEFLAGS} auportaudio;	\
			break;					\
		fi;						\
	done
ausdl: ${ausdl_SRC} ${audev_HDR} Makefile
	${CC} ${ausdl_CFLAGS} ${ausdl_LDFLAGS} -o $@ ${ausdl_SRC}
ausdl-magic:
	@${MAGIC};				\
	if pkg-config --exists sdl2; then	\
		${MAKE} ${MAKEFLAGS} ausdl;	\
	fi
ausndio: ${ausndio_SRC} ${audev_HDR} Makefile
	${CC} ${ausndio_CFLAGS} ${ausndio_LDFLAGS} -o $@ ${ausndio_SRC}
ausndio-magic:
	@${MAGIC};						\
	for x in $$(printf %s "$$PATH" | tr : ' '); do		\
		y="$$(dirname -- "$$x")";			\
		if [ -e "$$y/include/sndio.h" ]; then		\
			CFLAGS="$$CFLAGS -I$$y/include"		\
			    LDFLAGS="$$LDFLAGS -L$$y/lib"	\
			    ${MAKE} ${MAKEFLAGS} ausndio;	\
			break;					\
		fi;						\
	done
audev-install: audev-man-install
audev-man-install:
	install -m 444 audev.1 ${MAN1}/
	ln -f ${MAN1}/audev.1 ${MAN1}/au2dev.1
	ln -f ${MAN1}/audev.1 ${MAN1}/dev2au.1
aualsa-install: aualsa
	install -m 755 aualsa ${BIN}/
	ln -f ${BIN}/aualsa ${BIN}/au2alsa
	ln -f ${BIN}/aualsa ${BIN}/alsa2au
	ln -f ${MAN1}/audev.1 ${MAN1}/aualsa.1
	ln -f ${MAN1}/au2dev.1 ${MAN1}/au2alsa.1
	ln -f ${MAN1}/dev2au.1 ${MAN1}/alsa2au.1
auaudio-install: auaudio
	install -m 755 auaudio ${BIN}/
	ln -f ${BIN}/auaudio ${BIN}/au2audio
	ln -f ${BIN}/auaudio ${BIN}/audio2au
	ln -f ${MAN1}/audev.1 ${MAN1}/auaudio.1
	ln -f ${MAN1}/au2dev.1 ${MAN1}/au2audio.1
	ln -f ${MAN1}/dev2au.1 ${MAN1}/audio2au.1
auoss-install: auoss
	install -m 755 auoss ${BIN}/
	ln -f ${BIN}/auoss ${BIN}/au2oss
	ln -f ${BIN}/auoss ${BIN}/oss2au
	ln -f ${MAN1}/audev.1 ${MAN1}/auoss.1
	ln -f ${MAN1}/au2dev.1 ${MAN1}/au2oss.1
	ln -f ${MAN1}/dev2au.1 ${MAN1}/oss2au.1
auportaudio-install: auportaudio
	install -m 755 auportaudio ${BIN}/
	ln -f ${BIN}/auportaudio ${BIN}/au2portaudio
	ln -f ${BIN}/auportaudio ${BIN}/portaudio2au
	ln -f ${MAN1}/audev.1 ${MAN1}/auportaudio.1
	ln -f ${MAN1}/au2dev.1 ${MAN1}/au2portaudio.1
	ln -f ${MAN1}/dev2au.1 ${MAN1}/portaudio2au.1
ausdl-install: ausdl
	install -m 755 ausdl ${BIN}/
	ln -f ${BIN}/ausdl ${BIN}/au2sdl
	ln -f ${BIN}/ausdl ${BIN}/sdl2au
	ln -f ${MAN1}/audev.1 ${MAN1}/ausdl.1
	ln -f ${MAN1}/au2dev.1 ${MAN1}/au2sdl.1
	ln -f ${MAN1}/dev2au.1 ${MAN1}/sdl2au.1
ausndio-install: ausndio
	install -m 755 ausndio ${BIN}/
	ln -f ${BIN}/ausndio ${BIN}/au2sndio
	ln -f ${BIN}/ausndio ${BIN}/sndio2au
	ln -f ${MAN1}/audev.1 ${MAN1}/ausndio.1
	ln -f ${MAN1}/au2dev.1 ${MAN1}/au2sndio.1
	ln -f ${MAN1}/dev2au.1 ${MAN1}/sndio2au.1
audev-install-local:
aualsa-install-local: aualsa
	install -m 755 aualsa ${LBIN}/
	ln -f ${LBIN}/aualsa ${LBIN}/au2alsa
	ln -f ${LBIN}/aualsa ${LBIN}/alsa2au
auaudio-install-local: auaudio
	install -m 755 auaudio ${LBIN}/
	ln -f ${LBIN}/auaudio ${LBIN}/au2audio
	ln -f ${LBIN}/auaudio ${LBIN}/audio2au
auoss-install-local: auoss
	install -m 755 auoss ${LBIN}/
	ln -f ${LBIN}/auoss ${LBIN}/au2oss
	ln -f ${LBIN}/auoss ${LBIN}/oss2au
auportaudio-install-local: auportaudio
	install -m 755 auportaudio ${LBIN}/
	ln -f ${LBIN}/auportaudio ${LBIN}/au2portaudio
	ln -f ${LBIN}/auportaudio ${LBIN}/portaudio2au
ausdl-install-local: ausdl
	install -m 755 ausdl ${LBIN}/
	ln -f ${LBIN}/ausdl ${LBIN}/au2sdl
	ln -f ${LBIN}/ausdl ${LBIN}/sdl2au
ausndio-install-local: ausndio
	install -m 755 ausndio ${LBIN}/
	ln -f ${LBIN}/ausndio ${LBIN}/au2sndio
	ln -f ${LBIN}/ausndio ${LBIN}/sndio2au
